package com.jic.product.mapper;

import com.jic.product.entity.ProductDistribute;
import com.jic.product.manage.response.ProductDescribeResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品分发记录表
 * @author :
 * @email :
 * @since : 2020-01-15 05:53:49
 * @version : v1.0.0
 */
@Mapper
public interface  ProductDistributeMapper {

    long insert(ProductDistribute productDistribute);

    long delete(Long id);

    long update(ProductDistribute productDistribute);

    ProductDistribute queryByPrimaryKey(Long id);

    List<ProductDistribute> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("productDistribute") ProductDistribute productDistribute);

    long queryPageCount(ProductDistribute productDistribute);

    List<Long> queryByProductId(Long id);

    long queryDistributeCount(ProductDistribute productDistribute);


}
